﻿<div class="row" id="HolidayRequestGroupModal">
    <div id="ApproveRequest" class="modal fade" tabindex="-1" data-width="800">
        <div style="height: 500px">
                                   <div style="height: 220px"></div>
                <div class="ajax-loading"></div>
        </div>
    </div>
    <div id="ViewHolidayRequest" class="modal fade" tabindex="-1" data-width="800">
        <div style="height: 500px" >
                <div style="height: 220px"></div>
                <div class="ajax-loading"></div>
        </div>
    </div>
        <div id="CancelRequest" class="modal fade" tabindex="-1" data-width="800">
            <div style="height: 500px">
                <div style="height: 220px"></div>
                <div class="ajax-loading"></div>
            </div>
    </div>
</div>
<div class="row" >
    <form class="form-horizontal col-md-12" id="frFilterHolidayRequest" action="/HolidayManagement/EmployeeRequest" method="GET">
        <div class="row" >
            <div class="col-md-2">
                <div class="row" >
                    <input type="hidden" name="PersonalId" value="@ViewBag.PersonalId"/>
                    <label class="control-label col-md-3">Status:</label>
                    <div class="col-md-9">
                        @Html.DropDownList("BookStatusId",null,new {@class="form-control",onchange="SubmitFormFilter()"})
                    </div>
                </div>
            </div>
            <div class="col-md-2">
                <div class="row" >
                    <label class="control-label col-md-3">Type:</label>
                    <div class="col-md-9">
                        @Html.DropDownList("BookTypeId",null,new {@class="form-control",onchange="SubmitFormFilter()"})
                    </div>
                </div>
            </div>
    
            @if(ViewBag.PersonalId==0 ||ViewBag.PersonalId==null)
            {
                                <div class="col-md-3">
                <div class="row" >
                    <label class="control-label col-md-3">Site:</label>
                    <div class="col-md-9">
                        @Html.DropDownList("SiteId",null,new {@class="form-control",onchange="SubmitFormFilter()"})
                    </div>
                </div>
            </div>
                <div class="col-md-3">
                    <div class="row" >
                        <label class="control-label col-md-4">Department:</label>
                        <div class="col-md-8">
                            @Html.DropDownList("DepartmentId",null,new {@class="form-control",onchange="SubmitFormFilter()"})
                        </div>
                    </div>
                </div>
            }
            
            <div class="col-md-2">
                <div class="row" >
                    <div class="col-md-12">
                        <button type="submit" class="btn green"><i class="glyphicon glyphicon-refresh"></i> Refresh</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
  <div class="row"> 
<div class="col-md-12" id="msg-ListRequest-content">
   </div> 
</div>
   <div class="row" > 
    <div class="col-md-12" id="ListRequest-content">
        @Html.Action("ListEmployeeRequest","HolidayManagement",new{PersonalId=@ViewBag.PersonalId}) 
    </div>
</div>